﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MyComputer
{
    public partial class FormAbout : Form
    {
        public string SearchText { get; set; }

        public FormMain FormMain { get; set; }
        public FormAbout()
        {
            InitializeComponent();
        }

        private void FormAbout_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = false;
        }

        private void FormAbout_Load(object sender, EventArgs e)
        {
            this.label1.Text = this.SearchText;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (this.FormMain != null)
            {
                FormMain.Text = "Hello world";
            }
        }

        private void button4_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
    }
}
